package ${prefixPackage}.beans.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * ${tbDesc}
 *
 * @author ${author}
 * @date ${date}
 */
@Data
@TableName("${tbName}")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "${tbName}对象", description = "${tbDesc}")
public class ${javaNameBig} {

<#list columnList as column>
    /**
     * ${column.desc}
     */
    <#if column.name == 'id'>
    @TableId
    </#if>
    <#if column.name == 'create_time' || column.name == 'create_by' || column.name == 'create_name'>
    @TableField(fill = FieldFill.INSERT)
    </#if>
    <#if column.name == 'update_time' || column.name == 'update_by' || column.name == 'update_name'>
    @TableField(fill = FieldFill.UPDATE)
    </#if>
    private ${column.javaType} ${column.javaName};

</#list>
}
